package com.aizuda.boot.modules.business.approval.entity.dto;

import com.aizuda.boot.modules.business.approval.entity.vo.HandoverQueryVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @Author sangyirong
 * @ClassName HandoverDTO
 * @Version 1.0
 * @Date 2025/7/29 14:45
 */
@Data
public class HandoverDTO {

    @Schema(description = "交接人")
    private Long handoverUser;

    @Schema(description = "被交接人")
    private Long heirUser;

    @Schema(description = "交接理由")
    private String reason;

    @Schema(description = "需要交接的流程信息")
    private List<HandoverVO> handoverVOList;

    @Data
    public static class HandoverVO {

        @Schema(description = "工作流类型")
        private String workFlowType;

        @Schema(description = "需要交接的代办任务id")
        private List<Long> taskId;

        @Schema(description = "需要交接的用户发起的流程实例id")
        private List<Long> instanceId;

        @Schema(description = "需要交接的包含用户的流程id")
        private List<Long> processId;

    }
}
